package com.yoso.shop.infrastructure.base.entity;

import com.yoso.shop.infrastructure.utils.IDUtil;
import lombok.Data;

/**
 * @author shizejin
 * @date 2021/11/9
 * @description:
 */
@Data
public class BaseEntity {
    private String id;

    public void setIdAuto(){
        this.id = IDUtil.getUUID().substring(0,15);
    }
}
